import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {Course} from './models/course.entity';
// 将Course的服务注入进模块
import { CourseService } from './course.service';
import { CourseResolver } from './course.resolver';

@Module({
    imports:[TypeOrmModule.forFeature([Course])],
    providers:[CourseService, CourseResolver],
    exports:[CourseService],
})
export class CourseModule {}